package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/17 9:51
 * @Describe:受教育经历
 */
@ApiModel(value = "受教育经历：Edu")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_edu")
public class Edu implements Serializable {
    private static final long serialVersionUID = -8589930926152093640L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 学校名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "学校名称")
    private String name;

    /**
     * 专业名称
     */
    @TableField(value = "major")
    @ApiModelProperty(value = "专业名称")
    private String major;

    /**
     * 学位
     */
    @TableField(value = "degree")
    @ApiModelProperty(value = "学位")
    private String degree;

    /**
     * 所学课程
     */
    @TableField(value = "course")
    @ApiModelProperty(value = "所学课程")
    private String course;

    /**
     * 是否统招：1是 0不是
     */
    @TableField(value = "tong_zhao")
    @ApiModelProperty(value = "是否统招：1是 0不是")
    private Boolean tongZhao;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value = "开始时间")
    private LocalDate startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value = "结束时间")
    private LocalDate endTime;

    /**
     * 备注
     */
    @TableField(value = "info")
    @ApiModelProperty(value = "备注")
    private String info;

    /**
     * 标签，JSON数组
     */
    @TableField(value = "tags")
    @ApiModelProperty(value = "标签，JSON数组")
    private String tags;

    /**
     * 状态
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 学校地址
     */
    @TableField(value = "country_id")
    @ApiModelProperty(value = "学校地址")
    private Integer countryId;
}